package com.ruicar.afs.cloud.parameter.commom.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description: 制造商和品牌表
 * @author: sijun.yu
 * @date: 2020/5/15 9:24
 */
@TableName(value = "tsys_vehicle_brand", autoResultMap = true)
@Data
public class TsysVehicleBrand extends BaseEntity<TsysVehicleBrand> {

    /**
     * 车型级别;0-制造商，1-品牌
     */
    private String carLevel;
    /**
     * 代码
     */
    private String code;
    /**
     * 名称
     */
    private String name;
    /**
     * 类别
     */
    private String paraType;
    /**
     * 上级代码
     */
    private String upperCode;
    /**
     * 拼音代码
     */
    private String spellCode;
    /**
     * 排序id
     */
    private Integer orderId;
    /**
     * 名称  前端展示所需
     */
    private String title;

    @TableField(exist = false)
    @ApiModelProperty(value = "子区域")
    private List<TsysVehicleBrand> children;

    @TableField(exist = false)
    @ApiModelProperty(value = "节点展开 前端所需")
    private Boolean expand = true;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否勾选 前端所需")
    private Boolean checked = false;

    /**
     * 车辆类型
     **/
    private String carType;
}
